import request from '@/utils/request'

// 查询部门公共术语列表
export function listCommonterminfo(query) {
  return request({
    url: '/business/commonterminfo/list',
    method: 'get',
    params: query
  })
}

// 查询部门公共术语详细
export function getCommonterminfo(id) {
  return request({
    url: '/business/commonterminfo/' + id,
    method: 'get'
  })
}

// 新增部门公共术语
export function addCommonterminfo(data) {
  return request({
    url: '/business/commonterminfo',
    method: 'post',
    data: data
  })
}

// 修改部门公共术语
export function updateCommonterminfo(data) {
  return request({
    url: '/business/commonterminfo',
    method: 'put',
    data: data
  })
}

// 删除部门公共术语
export function delCommonterminfo(id) {
  return request({
    url: '/business/commonterminfo/' + id,
    method: 'delete'
  })
}

// 导出部门公共术语
export function exportCommonterminfo(query) {
  return request({
    url: '/business/commonterminfo/export',
    method: 'get',
    params: query
  })
}